package com.neo.impatient.C04_MapTuple.C04_02_getValue

object MapGet {


  def main(args: Array[String]): Unit = {
    val scores2 = Map(("ok", 4), ("ha", 5), ("ni", 6))

    if (scores2.contains("ok")) {
      println(scores2.get("ok"))
    }
    else {
      0
    }

    println("或者直接给出默认值0")

    println(scores2.getOrElse("haaa",null))


    val Array(aa,bb) = args

  }
}
